import socket

HOST = ''   # Symbolic name meaning the local host
PORT = 24069    # Arbitrary non-privileged port
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.connect((HOST, PORT))
while True:
    command = input('Enter your command: ')
    '''
    if command.split(' ', 1)[0] == 'STORE':
        while True:
            additional_text = input()
            command = command + '\n' + additional_text
            if additional_text == '.':
                break
    '''
    s.send(bytes(command, 'utf-8'))
    reply = s.recv(1024)

    # if reply == 'Quit': break
    print('recv : ', reply.decode('utf-8'))
s.close()